using Newtonsoft.Json;

namespace DCOWebhook.Models
{
    public class Commit
    {
        [JsonProperty("id")]
        public string Id { get; set; }

        [JsonProperty("message")]
        public string Message { get; set; }

        [JsonProperty("url")]
        public string Url { get; set; }

        [JsonProperty("author")]
        public Author Author { get; set; }
    }

    public class Author
    {
        [JsonProperty("name")]
        public string Name { get; set; }
    }
}
